<template>
  <view>
      <my-login v-if="!token"></my-login>
      <my-userinfo v-else></my-userinfo>
  </view>
</template>

<script>
  import {
    mapState
  } from 'vuex'
  import badge from '@/mixins/tabbar-badge.js'
  export default {
    data() {
      return {

      };
    },
    computed: {
      ...mapState('muser', ['token'])
    },
    mixins: [badge],
  }
</script>

<style lang="scss">

</style>
